package e

const (
	SUCCESS uint32 = 200

	ErrorParam       uint32 = 400
	PermissionDenied uint32 = 403
	ErrorNotFound    uint32 = 404

	ErrTimeout        uint32 = 405
	ServerCommonError uint32 = 500
	DBError           uint32 = 510
	RDBError          uint32 = 530
	ClusterError      uint32 = 540
	ClusterLock       uint32 = 541
	NotSupport        uint32 = 550
	ErrorDelete       uint32 = 560
	ErrorExpire       uint32 = 570

	ErrorFileUpload uint32 = 600

	// Community error codes 7000-7999
	// Menu error codes 7000-7099
	MenuNameEmpty  uint32 = 7000
	MenuNameExists uint32 = 7001
	MenuNotFound   uint32 = 7002
	MenuHasTopics  uint32 = 7003

	// Topic error codes 7100-7199
	TopicNameEmpty uint32 = 7100
	TopicHasPosts  uint32 = 7101
	TopicNotFound  uint32 = 7104

	// Post error codes 7200-7299
	PostTitleEmpty   uint32 = 7200
	PostContentEmpty uint32 = 7201
	PostNotOwner     uint32 = 7202
	PostTagEmpty     uint32 = 7203
	PostNotFound     uint32 = 7204
	PostPermission   uint32 = 7205

	// Comment error codes 7300-7399
	CommentContentEmpty uint32 = 7300
	CommentNotFound     uint32 = 7301
	CommentPostNotFound uint32 = 7302
	CommentNotOwner     uint32 = 7303
)
